//
//  UIButton+extension.h
//  MGPublic
//
//  Created by lhongl on 2025/11/4.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSUInteger, MGButtonEdgeImageStyle) {
    MGButtonEdgeImageStyleLeft, // image在左
    MGButtonEdgeImageStyleTop, // image在上
    MGButtonEdgeImageStyleBottom, // image在下
    MGButtonEdgeImageStyleRight // image在右
};

@interface UIButton (extension)

/// 设置间距【系统默认样式】
/// - Parameter space: 间距
- (void)setAdjustWithSpace:(CGFloat)space;


/// 设置间距和样式
/// - Parameters:
///   - style: 样式
///   - space: 间距
- (void)setAdjustWithStyle:(MGButtonEdgeImageStyle)style space:(CGFloat)space;



@end

NS_ASSUME_NONNULL_END
